package com.bwda.dsrs.filecenter.toolcenter.domain;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * @description:
 * @author: yangjun
 * @create: 2019-10-12 15:35
 */

@XmlRootElement
public class WsdlResponse<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private T data;

    private String code;

    private String message;

    public WsdlResponse(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public WsdlResponse(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public WsdlResponse() {
    }

    public T getData() {
        return data;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
